import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
    {
    title: '报名信息',
    align:"center",
    dataIndex: 'applyInfo_dictText'
   },
   {
    title: '标题',
    align:"center",
    dataIndex: 'title'
   },
   {
    title: '总报名人数',
    align:"center",
    dataIndex: 'applyNumSum'
   },
   {
    title: '是否锁定',
    align:"center",
    dataIndex: 'isLock_dictText'
   },
   {
    title: '房源数量',
    align:"center",
    dataIndex: 'roomNum'
   },
   {
    title: '当前审核人',
    align:"center",
    dataIndex: 'currCheckPeople'
   },
   {
    title: '状态',
    align:"center",
    dataIndex: 'status_dictText'
   },
   {
    title: '是否完结',
    align:"center",
    dataIndex: 'isEnd_dictText'
   },
];
//查询数据
export const searchFormSchema: FormSchema[] = [
];
//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '报名信息',
    field: 'applyInfo',
    component: 'JDictSelectTag',
    componentProps:{
        dictCode:"znzf_apply,title,id"
     }
  },
  {
    label: '标题',
    field: 'title',
    component: 'Input',
  },
  {
    label: '总报名人数',
    field: 'applyNumSum',
    component: 'Input',
  },
  {
    label: '是否锁定',
    field: 'isLock',
    component: 'JDictSelectTag',
    componentProps:{
        dictCode:"yn"
     }
  },
  {
    label: '房源数量',
    field: 'roomNum',
    component: 'InputNumber',
  },
  {
    label: '当前审核人',
    field: 'currCheckPeople',
    component: 'Input',
  },
  {
    label: '状态',
    field: 'status',
    component: 'JDictSelectTag',
    componentProps:{
        dictCode:""
     }
  },
  {
    label: '是否完结',
    field: 'isEnd',
    component: 'JDictSelectTag',
    componentProps:{
        dictCode:"yn"
     }
  },
];
